<template>
    <div class="list-wrap-pk">
        <div class="text-center-pk item-content-pk">
            <div>商品详情</div>
            <van-icon classPrefix="pk-icon" :name="arrowName" color="#666666" @click="detailToggle" />
        </div>
        <div class="detailRichText ql-editor" v-show="detailShow" v-html="detailHtml"></div>
    </div>
</template>

<script>
    export default {
        name: "detailRichText",
        props: {
            detailHtml: {
                type: String,
                default: ""
            }
        },
        components: {},

        data() {
            return {
                detailShow: true,
                arrowName: "arrow-down-d"
            }
        },

        created() {
        },
        computed: {},
        watch: {},
        methods: {
            detailToggle() {
                this.detailShow = !this.detailShow;
                this.arrowName = this.detailShow ? "arrow-down-d" : "arrow-up-d"
            }
        }
    }
</script>

<style lang="scss" scoped>
    .detailRichText {
        /deep/img {
            width: 100% !important;
        }
    }
</style>
